package cn.cnooc.config;

/**
 * Created on 2023.
 *
 * @author IEECAS
 */
public class CodeMsg {
    private int ret;
    private String msg;
    /**
     * 按照模块定义CodeMsg
     * 通用异常
     */
    public static CodeMsg SUCCESS = new CodeMsg(200,"成功");
    /*小程序需要的*/

    public static CodeMsg NOTUSER = new CodeMsg(202,"没有绑定手机号");
    public static CodeMsg BANNED = new CodeMsg(205,"用户被封禁");
    public static CodeMsg ERROR = new CodeMsg(201,"失败");



    private CodeMsg(int ret, String message) {
        this.ret = ret;
        this.msg = message;
    }
    public int getRet() {
        return ret;
    }
    public String getMsg() {
        return msg;
    }
    public void setMsg(String message) {
        this.msg = message;
    }
}
